<?php
echo '<div id="content3">';
echo '<div id="block21">';

    $email = isset($_REQUEST['username']) ? $_REQUEST['username'] : "";

    echo "<div class='message'>". $error . "</div>";
    echo '<h2>Melde Dich an</h2><br />';
    echo '<h3>Ich bin neu hier</h3>';
    echo '<div class="content_frame4">Durch Deine Registrierung bei uns kannst Du alle Funktionen von Lingomoto nutzen:<br />';
    echo '<div class="buttonright"><a href="registrieren.html"><img src="bilder/buttons/weiter.gif" alt="Registrieren" title=" Registrieren " /></a></div>';
    echo '</div>';

    echo '<form action=' . $link . ' method="post">';
    echo '<br /><h3>Ich bin bereits registriert</h3>';
    echo '<div class="content_frame4">';
    echo '<ul>';
    echo '<li>E-Mail:</li>';
    echo '<li><input type="text" class="login_ul" name="username" size="25" maxlength="40" value="';
    // Content, if form was not completed
    echo $email;
    echo '" onClick=this.value="" /></li>';
    echo '<li>Passwort:</li>';
    echo '<li><input type="password" value="" class="login_ul" name="password" size="25" maxlength="40" onClick=this.value="" /></li>';
    echo '<li><input type="image" class="margintop" src="bilder/buttons/anmelden.gif" alt="Anmelden" title=" Anmelden " /></li>';
    echo '</ul>';
    echo '</div>';
    echo '<p><a href="passwort-vergessen.html" class="lostpassword">Passwort vergessen?</a></p>';
	if ($_REQUEST['pre_page'])$referer=$_REQUEST['pre_page'];else $referer=$_SERVER["HTTP_REFERER"];

    echo '   <input type="hidden" name="pre_page" value="'.$referer.'" ';
    echo '</form>';	

?>